<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #dash {
            width: 500px;
            font-size: 12px;
            height: 200px;
            border: 4px solid transparent;
            background: linear-gradient(#fff,#fff) padding-box,repeating-linear-gradient(-45deg,#e02e2e 0em,#e02e23 .5em,transparent .5em,transparent 1em) border-box;
        }
    </style>
</head>
<body>
    <div id="dash">
        哈哈哈哈哈哈哈哈哈哈
    </div>
</body>
</html>